//
//  ZHFMDB.h
//  XMLYFM
//
//  Created by dllo on 15/12/28.
//  Copyright © 2015年 zzl. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZTAlbumModel.h"
#import "ZTFavorModel.h"

@interface ZHFMDB : NSObject

@property (nonatomic,strong) FMDatabase *db;

+ (instancetype)shareFMDB;

- (void)openFMDB;
- (void)openFMDBAndCreateTable;

// 专辑
- (void)dropTableAlbums;
-(void)insertAlbumData:(ZTFavorModel *)album;

-(NSMutableArray *)selectAlbumData;

-(NSMutableArray *)selectAlbumIdData;

-(void)deleteByAlbumId:(NSString *)Id;

// 声音

-(void)dropTableTracks;
-(void)insertTrackData:(ZTAlbumModel *)track;
-(NSMutableArray *)selectTrackData;
-(NSMutableArray *)selectTrackIDData;
-(void)deleteByTrackId:(NSInteger )Id;
-(NSMutableArray *)selectTrackImageData;
-(NSMutableArray *)selectTrackNameData;


@end
